<?php
include(ANYROOT.'include/page.class.php');
//$CLASS=true;
$cid=getcateidbyname($classId);
$cnname=getinfo($cid,'name','categories');
$enname=getinfo($cid,'englishname','categories');
$total=getcount("SELECT `essay_id`FROM ".tbname("essay")." WHERE essay_status='pub' AND essay_categoryid='$cid'");
$url="./?class-$classId-$id";
$prepage=20;
if($cid==118) $prepage=22;
$page=$classPage;
$p=new Page2($total,$url,$page,$prepage);
$offset=($page-1)*$prepage;

$pgtitle=$cnname.'-'; 
//include($filePath."header.php");
?>
<?php include("header.php"); ?>
	<div id="layout">
		<div class="list box">
			<div class="news_location">
				您现在的位置：
				<a href="../">青年网</a> &gt; <a href="./">青年动态</a> &gt; <a href="./?class-<?=$enname?>.htm"><?=$cnname?></a>
			</div>
			<div class="news_class">
				<ul>
					<?=listnewsbycid($cid,155,$prepage,'','no',$offset)?>
				</ul>
			<div ><?=$p->showpage()?></div>
			</div>
		</div>
<?php include("side.php"); ?>
		<div class="clear"></div>
<?php include("footer.php"); ?>
